import React from 'react'
import { Routes, Route,Navigate ,useRoutes} from 'react-router-dom'
import routes from './routes'
  //Navigate 路由跳转 ，Navigate是个组件所有需要用</>写法！
export default function App() {
  return (
    <div>
        {
          useRoutes(routes)     
        }
        
    </div>
  )
}
